#include <stdlib.h>
#include <pwd.h>
#include <sys/types.h>
#include <stdio.h>
int main(int argc, char **argv){
    struct passwd *pwdline;

    if(argc < 2){
    
        exit(1);
    }

    pwdline = getpwuid(atoi(argv[1]));

    puts(pwdline->pw_name);
    puts(pwdline->pw_passwd);
    
}